]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspaceThumbnails: Actually use vscale parameter
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 16 Feb 2021 22:06:37 +0000 (23:06 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 19 Feb 2021 00:08:48 +0000 (01:08 +0100)
We pass two scales to setScale(), but only use the first one for
both horizontal and vertical scaling. We'll soon have a use case
for using a different scale for each dimension, so start using
both parameters.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3739

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1696>

js/ui/workspaceThumbnail.js

index 40a33fe3a34071f11aced4ceaca4caa298ec5c98..8d3cb53d18669dda7ed9187e34a4299fe47d8900 100644 (file)
@@ -595,8 +595,8 @@ var WorkspaceThumbnail = GObject.registerClass({
         return false;
     }
 
-    setScale(scale) {
-        this._contents.set_scale(scale, scale);
+    setScale(scaleX, scaleY) {
+        this._contents.set_scale(scaleX, scaleY);
     }
 });